<html><head>
  <title>NEGATED :last-child pseudo-class</title>
  <style type="text/css">.green { background-color : lime ! important }
.t1 td:not(:last-child) { background-color : red }
p > *:not(:last-child) { background-color : red }
table.t1 td { border : thin black solid }
</style>
  <link rel="author" title="Daniel Glazman" href="http://glazman.org/">
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <meta name="flags" content="">
 </head>
 <body>
 <div>
  <table class="t1" border="1">
   <tbody><tr>
    <!--[ELEMENT('.green')]--><td class="green"><!--[TEXT('.green')]-->green cell<!--[/TEXT('.green')]--></td><!--[/ELEMENT('.green')]-->
    <!--[ELEMENT('.green')]--><td class="green"><!--[TEXT('.green')]-->green cell<!--[/TEXT('.green')]--></td><!--[/ELEMENT('.green')]-->
    <td>1.3</td>
   </tr>
   <tr>
    <!--[ELEMENT('.green')]--><td class="green"><!--[TEXT('.green')]-->green cell<!--[/TEXT('.green')]--></td><!--[/ELEMENT('.green')]-->
    <!--[ELEMENT('.green')]--><td class="green"><!--[TEXT('.green')]-->green cell<!--[/TEXT('.green')]--></td><!--[/ELEMENT('.green')]-->
    <td>2.3</td>
   </tr>
   <tr>
    <!--[ELEMENT('.green')]--><td class="green"><!--[TEXT('.green')]-->green cell<!--[/TEXT('.green')]--></td><!--[/ELEMENT('.green')]-->
    <!--[ELEMENT('.green')]--><td class="green"><!--[TEXT('.green')]-->green cell<!--[/TEXT('.green')]--></td><!--[/ELEMENT('.green')]-->
    <td>3.3</td>
   </tr>
  </tbody></table>
 </div>
 <p>This <span>paragraph should</span> be unstyled.</p>

</body></html>